<?php
class AdminUserModel extends Model{
	/**
	 * 映射字段
	 * @var unknown_type
	 */
	protected $_map = array(
		'uName'=>'username',
		'rName'=>'realname',
		'uEmail'=>'email',
		'uPsw'=>'passwd'
	);
	protected $_auto = array(
		array('passwd','opreate_pass',1,'callback'),
		array('regtime','time',1,'function')
	);
	protected function opreate_pass($passwd){
		$key = C('PWD_KEY');
		return md5($key.$passwd);
	}
//	protected $_auto = array(
//		array('passwd','md5',1,'function'),
//		array('regtime','time',1,'function')
//	);
}